home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Human / gtk-2.0 / gtkrc next >
Encoding:
Text File  |  2009-03-30  |  13.2 KB  |  428 lines

  1. # Ubuntu Human-Murrine Colorscheme
  2. #
  3. # Authors:
  4. # Kenneth Wimer <kwwii@ubuntu.com>
  5. # Conn O'Griofa <connogriofa@gmail.com>
  6. #
  7. # Feel free to modify and share!
  8.  
  9. gtk_color_scheme = "fg_color:#101010\nbg_color:#EFEBE7\nbase_color:#FFF\ntext_color:#1A1A1A\nselected_bg_color:#FFA443\nselected_fg_color:#1A1A1A\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
  10.  
  11. gtk-icon-sizes = "panel-menu=24,24"
  12.  
  13. style "murrine-default"
  14. {
  15.     ########
  16.     # Style Properties
  17.     ########
  18.     GtkButton      ::child-displacement-x = 1
  19.     GtkButton      ::child-displacement-y = 1
  20.     GtkButton      ::default-border       = { 0, 0, 0, 0 }
  21.     GtkCheckButton ::indicator-size       = 14
  22.  
  23.     GtkPaned       ::handle-size          = 6
  24.  
  25.     GtkRange       ::trough-border        = 0
  26.     GtkRange       ::slider-width         = 15
  27.     GtkRange       ::stepper-size         = 15
  28.  
  29.     GtkScale       ::slider-length        = 20
  30.     GtkScale       ::trough-side-details  = 0           # 0 = thin slider, >0 = thick slider
  31.     GtkScrollbar   ::min-slider-length    = 30
  32.  
  33.     GtkMenuBar     ::internal-padding     = 0
  34.     GtkExpander    ::expander-size        = 16
  35.     GtkToolbar     ::internal-padding     = 1
  36.     GtkTreeView    ::expander-size        = 14
  37.     GtkTreeView    ::vertical-separator   = 0
  38.  
  39.     GtkMenu        ::horizontal-padding   = 0
  40.     GtkMenu        ::vertical-padding     = 0
  41.  
  42.     # Glow the tasklist by changing the color, instead of overlaying it with a rectangle
  43.     #WnckTasklist   ::fade-overlay-rect    = 0
  44.  
  45.     #GtkWidget ¬† ¬† ¬†::link-color ¬† ¬† ¬† ¬†   = @fg_color
  46.     #GtkWidget ¬† ¬† ¬†::visited-link-color   = shade (0.2, @fg_color)
  47.  
  48.     xthickness = 1
  49.     ythickness = 1
  50.  
  51.     fg[NORMAL]        = @fg_color
  52.     fg[PRELIGHT]      = @fg_color
  53.     fg[ACTIVE]        = @fg_color
  54.     fg[SELECTED]      = @selected_fg_color
  55.     fg[INSENSITIVE]   = shade (0.7, @bg_color)
  56.  
  57.     bg[NORMAL]        = @bg_color
  58.     bg[PRELIGHT]      = shade (0.98, @bg_color)
  59.     bg[ACTIVE]        = shade (0.85, @bg_color)
  60.     bg[SELECTED]      = mix (0.25, @tooltip_fg_color, @selected_bg_color) # Gnome Appearances Preferences workaround
  61.     bg[INSENSITIVE]   = @bg_color
  62.  
  63.     base[NORMAL]      = @base_color
  64.     base[PRELIGHT]    = shade (0.95, @bg_color)
  65.     base[ACTIVE]      = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  66.     base[SELECTED]    = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  67.     base[INSENSITIVE] = @bg_color
  68.  
  69.     text[NORMAL]      = @text_color
  70.     text[PRELIGHT]    = @text_color
  71.     text[ACTIVE]      = @selected_fg_color
  72.     text[SELECTED]    = @selected_fg_color
  73.     text[INSENSITIVE] = shade (0.7, @bg_color)
  74.  
  75.     engine "murrine" 
  76.     {
  77.         animation           = TRUE  # FALSE = disabled, TRUE = enabled
  78.         colorize_scrollbar  = FALSE # FALSE = disabled, TRUE = enabled
  79.         contrast            = 1.05  # 0.8 for less contrast, more than 1.0 for more contrast on borders
  80.         glazestyle          = 0     # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
  81.         gradient_shades     = {1.07,1.05,1.04,1.01} # default: {1.1,1.0,1.0,1.1}
  82.         gradients           = TRUE  # FALSE = disabled, TRUE = enabled
  83.         highlight_shade     = 1.02  # set highlight amount for buttons or widgets
  84.         lightborder_shade   = 1.2   # sets lightborder amount for buttons or widgets
  85.         lightborderstyle    = 0     # 0 = lightborder on top side, 1 = lightborder on all sides
  86.         listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
  87.         listviewstyle       = 1     # 0 = nothing, 1 = dotted
  88.         menubaritemstyle    = 1     # 0 = menuitem look, 1 = button look
  89.         menubarstyle        = 2     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
  90.         menuitemstyle       = 1     # 0 = flat, 1 = glassy, 2 = striped
  91.         menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
  92.         reliefstyle        = 2     # 0 = flat, 1 = inset, 2 = shadow
  93.         rgba            = FALSE  # FALSE = disabled, TRUE = enabled
  94.         roundness           = 2     # 0 = squared, 1 = old default, more will increase roundness
  95.         scrollbarstyle      = 2     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
  96.         sliderstyle         = 1     # 0 = nothing added, 1 = handles
  97.         stepperstyle        = 0     # 0 = standard, 1 = integrated stepper handles, 2 = unknown
  98.         #profile            = NODOKA # engine profile options: CANDIDO, CLEARLOOKS, MIST, MURRINE, NODOKA
  99.         toolbarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient
  100.     }
  101. }
  102.  
  103. style "murrine-wide"
  104. {
  105.     xthickness   = 2
  106.     ythickness   = 2
  107.  
  108.     bg[SELECTED] = @selected_bg_color
  109. }
  110.  
  111. style "murrine-wider"
  112. {
  113.     xthickness   = 3
  114.     ythickness   = 3
  115.  
  116.     bg[SELECTED] = @selected_bg_color
  117. }
  118.  
  119. style "murrine-button" = "murrine-wider"
  120. {
  121.     bg[NORMAL]      = shade (0.95, @bg_color)
  122.     bg[SELECTED]    = mix(0.70, shade (1.00, @selected_bg_color), @tooltip_bg_color)
  123.     bg[INSENSITIVE] = shade (0.98, @bg_color)
  124. }
  125.  
  126. style "murrine-notebook"
  127. {
  128.     bg[NORMAL]   = shade (1.00, @bg_color)
  129.     bg[ACTIVE]   = shade (0.89, @bg_color)
  130.     bg[SELECTED] = @selected_bg_color
  131.  
  132.     engine "murrine" 
  133.     {
  134.     }
  135. }
  136.  
  137. style "murrine-tasklist" = "murrine-wide"
  138. {
  139. }
  140.  
  141. style "murrine-menu" = "murrine-wider"
  142. {
  143.     bg[NORMAL] = shade (1.04, @bg_color)
  144. }
  145.  
  146. style "murrine-menubar"
  147. {
  148. }
  149.  
  150. style "murrine-menu-item" = "murrine-wider"
  151. {
  152.     bg[PRELIGHT] = mix(0.70, shade (1.0, @selected_bg_color), @tooltip_bg_color)
  153.     bg[SELECTED] = mix(0.70, shade (1.0, @selected_bg_color), @tooltip_bg_color)
  154.     fg[PRELIGHT] = @selected_fg_color
  155. }
  156.  
  157. style "murrine-separator-menu-item"
  158. {
  159. }
  160.  
  161. style "murrine-treeview"
  162. {
  163.     bg[SELECTED] = @selected_bg_color
  164.     fg[SELECTED] = @base_color
  165. }
  166.  
  167. style "murrine-treeview-header" = "murrine-default"
  168. {
  169.     bg[NORMAL]      = shade (0.95, @bg_color)
  170.     bg[SELECTED]    = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  171.     bg[INSENSITIVE] = shade (0.95, @bg_color)
  172. }
  173.  
  174. style "murrine-frame-title"
  175. {
  176.     fg[NORMAL] = lighter (@fg_color)
  177. }
  178.  
  179. style "murrine-tooltips" = "murrine-wider"
  180. {
  181.     bg[NORMAL] = @tooltip_bg_color
  182.     fg[NORMAL] = @tooltip_fg_color
  183. }
  184.  
  185. style "murrine-progressbar"
  186. {
  187.     xthickness   = 0
  188.     ythickness   = 0
  189.  
  190.     bg[SELECTED] = @selected_bg_color
  191.     fg[PRELIGHT] = @base_color
  192.  
  193.     engine "murrine" 
  194.     {
  195.         highlight_shade = 1.1
  196.     }
  197. }
  198.  
  199. style "murrine-statusbar"
  200. {
  201. }
  202.  
  203. style "murrine-comboboxentry"
  204. {
  205. }
  206.  
  207. style "murrine-spinbutton"
  208. {
  209.     #bg[NORMAL]      = shade (0.95, @bg_color) # we need to fix rectangular border bug on spinbutton
  210.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  211.  
  212.     engine "murrine" 
  213.     {
  214.         gradient_shades = {1.02,1.00,0.99,0.95}
  215.     }
  216. }
  217.  
  218. style "murrine-scale"
  219. {
  220.     GtkRange        ::slider-width = 13
  221.  
  222.     bg[NORMAL]      = shade (0.95, @bg_color)
  223.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  224.  
  225.     engine "murrine" 
  226.     {
  227.     }
  228. }
  229.  
  230. style "murrine-hscale"
  231. {
  232. }
  233.  
  234. style "murrine-vscale"
  235. {
  236. }
  237.  
  238. style "murrine-scrollbar"
  239. {
  240.     bg[NORMAL]      = shade (0.95, @bg_color)
  241.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  242.  
  243.     engine "murrine" 
  244.     {
  245.     }
  246. }
  247.  
  248. style "murrine-hscrollbar"
  249. {
  250. }
  251.  
  252. style "murrine-vscrollbar"
  253. {
  254. }
  255.  
  256. style "murrine-nautilus-location"
  257. {
  258.     bg[NORMAL] = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  259. }
  260.  
  261. style "metacity-frame"
  262. {
  263.     bg[SELECTED] = mix (0.25, @tooltip_fg_color, @selected_bg_color)
  264. }
  265.  
  266. style "murrine-radiocheck" = "murrine-default"
  267. {
  268.     text[PRELIGHT] = @base_color # text on mouseover
  269. }
  270.  
  271. style "murrine-panel"
  272. {
  273. #    bg_pixmap[NORMAL] = "panel_small.png"
  274.     bg[SELECTED] = mix(0.70, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  275. }
  276.  
  277. #########################################
  278. # Matches
  279. #########################################
  280.  
  281. # Theme radio buttons and checkmarks
  282. class "GtkRadio*"                                style "murrine-radiocheck"
  283. class "GtkCheck*"                                   style "murrine-radiocheck"
  284.  
  285. # Keep proper colour for Metacity
  286. class "MetaFrames"                     style "metacity-frame"
  287. #class "GtkWindow"                            style "metacity-frame"
  288.  
  289. # Theme default style is applied to every widget
  290. class "GtkWidget"                        style "murrine-default"
  291.  
  292. # Increase the x/ythickness in some widgets
  293. class "GtkToolbar"                       style "murrine-default" 
  294. class "GtkRange"                         style "murrine-wide"
  295. class "GtkFrame"                         style "murrine-wide"
  296. class "GtkSeparator"                     style "murrine-wide"
  297. class "GtkEntry"                         style "murrine-wider"
  298.  
  299. class "GtkSpinButton"                      style "murrine-spinbutton"
  300. class "GtkScale"                           style "murrine-scale"
  301. class "GtkVScale"                          style "murrine-vscale"
  302. class "GtkHScale"                          style "murrine-hscale"
  303. class "GtkScrollbar"                       style "murrine-scrollbar"
  304. class "GtkVScrollbar"                      style "murrine-vscrollbar"
  305. class "GtkHScrollbar"                      style "murrine-hscrollbar"
  306.  
  307. # General matching following, the order is choosen so that the right styles override each other
  308. # eg. progressbar needs to be more important then the menu match.
  309.  
  310. # This is not perfect, it could be done better
  311. # (That is modify *every* widget in the notebook, and change those back that
  312. # we really don't want changed)
  313. widget_class "*<GtkNotebook>*<GtkEventBox>"         style "murrine-notebook"
  314. widget_class "*<GtkNotebook>*<GtkDrawingArea>"        style "murrine-notebook"
  315. widget_class "*<GtkNotebook>*<GtkLayout>"           style "murrine-notebook"
  316.  
  317. widget_class "*<GtkButton>"                  style "murrine-button"
  318. widget_class "*<GtkNotebook>"                style "murrine-notebook"
  319. widget_class "*<GtkStatusbar>*"              style "murrine-statusbar"
  320.  
  321. widget_class "*<GtkComboBoxEntry>*"            style "murrine-comboboxentry"
  322. widget_class "*<GtkCombo>*"                     style "murrine-comboboxentry"
  323.  
  324. widget_class "*<GtkMenuBar>*"                   style "murrine-menubar"
  325. widget_class "*<GtkMenu>*"                      style "murrine-menu"
  326. widget_class "*<GtkMenuItem>*"                  style "murrine-menu-item"
  327. widget_class "*<GtkSeparatorMenuItem>*"         style "murrine-separator-menu-item"
  328.  
  329. widget_class "*.<GtkFrame>.<GtkLabel>"             style "murrine-frame-title"
  330. widget_class "*.<GtkTreeView>*"                    style "murrine-treeview"
  331.  
  332. widget_class "*<GtkProgressBar>"                   style "murrine-progressbar"
  333.  
  334. # Treeview header
  335. widget_class "*.<GtkTreeView>.<GtkButton>"         style "murrine-treeview-header"
  336. widget_class "*.<GtkCTree>.<GtkButton>"            style "murrine-treeview-header"
  337. widget_class "*.<GtkList>.<GtkButton>"             style "murrine-treeview-header"
  338. widget_class "*.<GtkCList>.<GtkButton>"            style "murrine-treeview-header"
  339.  
  340. # Workarounds for Evolution
  341. widget_class "*.ETable.ECanvas"                style "murrine-treeview-header"
  342. widget_class "*.ETree.ECanvas"                style "murrine-treeview-header"
  343.  
  344. # The window of the tooltip is called "gtk-tooltip"
  345. ################################
  346. # FIXME:
  347. # This will not work if one embeds eg. a button into the tooltip.
  348. # As far as I can tell right now we will need to rework the theme
  349. # quite a bit to get this working correctly.
  350. # (It will involve setting different priorities, etc.)
  351. ################################
  352. widget "gtk-tooltip*"                     style "murrine-tooltips"
  353.  
  354. ###################################################
  355. # Special cases and work arounds
  356. ###################################################
  357.  
  358. # Special case the nautilus-extra-view-widget
  359. # ToDo: A more generic approach for all applications that have a widget like this.
  360. widget "*.nautilus-extra-view-widget"             style : highest "murrine-nautilus-location"
  361.  
  362. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  363. # Note that the work around assumes that the combobox is _not_ in
  364. # appears-as-list mode.
  365. # Similar hack also in the menuitem style.
  366. # This style does not affect GtkComboBoxEntry, it does have an effect
  367. # on comboboxes in appears-as-list mode though.
  368. style "murrine-combobox-text-color-workaround"
  369. {
  370.     text[NORMAL]      = @fg_color
  371.     text[PRELIGHT]    = @fg_color
  372.     text[ACTIVE]      = @fg_color
  373.     text[SELECTED]    = @selected_fg_color
  374.     text[INSENSITIVE] = shade (0.7, @bg_color)
  375. }
  376. widget_class "*.<GtkComboBox>.<GtkCellView>"        style "murrine-combobox-text-color-workaround"
  377.  
  378. style "murrine-menuitem-text-is-fg-color-workaround"
  379. {
  380.     text[NORMAL]        = @fg_color
  381.     text[PRELIGHT]      = @selected_fg_color
  382.     text[ACTIVE]        = @fg_color
  383.     text[SELECTED]      = @selected_fg_color
  384.     text[INSENSITIVE]   = shade (0.7, @bg_color)
  385. }
  386.  
  387. widget "*.gtk-combobox-popup-menu.*"               style "murrine-menuitem-text-is-fg-color-workaround"
  388.  
  389. # Work around the usage of GtkLabel inside GtkListItems to display text.
  390. # This breaks because the label is shown on a background that is based on the
  391. # base color set.
  392. style "murrine-fg-is-text-color-workaround"
  393. {
  394.     bg[SELECTED]    = mix(0.50, shade (1.05, @selected_bg_color), @tooltip_bg_color)
  395.     fg[NORMAL]      = @text_color
  396.     fg[PRELIGHT]    = @text_color
  397.     fg[ACTIVE]      = @selected_fg_color
  398.     fg[SELECTED]    = @selected_fg_color
  399.     fg[INSENSITIVE] = shade (0.7, @bg_color)
  400. }
  401.  
  402. widget_class "*<GtkListItem>*"                 style "murrine-fg-is-text-color-workaround"
  403.  
  404. # The same problem also exists for GtkCList and GtkCTree
  405. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  406. widget_class "*<GtkCList>"                 style "murrine-fg-is-text-color-workaround"
  407.  
  408. style "murrine-evo-new-button-workaround"
  409. {
  410.  
  411.     engine "murrine"
  412.     {
  413.         toolbarstyle = 0
  414.     }
  415. }
  416.  
  417. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
  418.  
  419. # Theme panel elements
  420. widget "*PanelWidget*"                     style "murrine-panel"
  421. widget "*PanelApplet*"                     style "murrine-panel"
  422. widget "*fast-user-switch*"                style "murrine-panel" # workaround for Fast User Switch applet
  423. class "PanelApp*"                     style "murrine-panel"
  424. class "PanelToplevel*"                     style "murrine-panel"
  425. widget_class "*Mail*"                     style "murrine-panel"
  426. widget_class "*notif*"                     style "murrine-panel"
  427. widget_class "*Notif*"                     style "murrine-panel"
  428.